home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12868 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: sooner.net!usenet
  2. From: Eddie Bush <edwbush@sooner.net>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Passing Function Pointers
  5. Date: Wed, 03 Apr 1996 02:10:09 -0800
  6. Organization: sooner.net news site
  7. Message-ID: <31624E81.734E@sooner.net>
  8. References: <315E7284.479F@sooner.net> <4jn0m3$1ae@sparcserver.lrz-muenchen.de>
  9. NNTP-Posting-Host: p22.sooner.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. Kurt Watzka wrote:
  16. >   fn is a pointer to int. *fn is an int, i.e. _not_ a function so
  17. >   if your compiler tells you that you are calling a non-function,
  18. >   why don't you trust it?Because it was very late.  I was very tired, and -- for some reason
  19. unknown to me, decided the compiler didn't support it.  Have you never
  20. done that?  ...especially with something simple.
  21.  
  22. > Well, all versions of gcc available to me do not allow calling an
  23. > int as a function. Are you abolutely sure that your functions
  24. > signature did not look suspiciously similar to
  25. >    void delete (list *my_list, int (*fn)(l_node));
  26.  
  27. Yes -- I finally found that old database code, and you are right.  >DUH<
  28.  
  29. > Hint: If you make claims about a certain compiler, be sure it is
  30. > Frolic C, available on the Frozzietec CD 6400 only. Otherwise, there
  31. > might be someone reading your article who has access to that compiler.
  32. > Kurt
  33.  
  34. Kurt,
  35.     I appreciate your help, but I do __not__ appreciate the 
  36. implications that you are tossing.  Though I am probably far from being 
  37. the best person around when it comes to understanding different 
  38. techniques, I feel that I am not that bad.  Do you really find it 
  39. necessary to try and belittle people when they happen to make a mistake? 
  40.  That seems ___very___ unprofessional and immature to me.  I am sorry you 
  41. feel the need to place yourself above others.  Maybe, one of these days, 
  42. you will find it within yourself to simply help raise people and 
  43. enlighten them to the truth --- rather than chastise them for being 
  44. wrong.  You would be surprised how much better positive-reinforcement can 
  45. be
  46.  
  47.                     Sincerely,
  48.  
  49.                     Eddie Bush
  50.